﻿/*CREATE TRIGGER [dbo].[ProveedoresSemilla_DeletionTrigger] 
    ON [ProveedoresSemilla] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[ProveedoresSemilla_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[ProveedorGuid] = [ProveedoresSemilla_Tombstone].[ProveedorGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[ProveedoresSemilla_Tombstone] 
    ([ProveedorGuid], DeletionDate)
    SELECT [ProveedorGuid], GETUTCDATE()
    FROM deleted 
END*/